<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2022/9/26
  Time: 19:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:if test="${empty user}" >
    <h1>您还没有登录，请先登录</h1>
    <a href="/index.jsp">去登录</a>
</c:if>
<c:if test="${user!=null}">
  <table border="1px" align="center" bgcolor="#db7093" width="400px">
      <tr>
        <td>用户名</td>
        <td>密&emsp;码</td>
        <td>手机号</td>
        <td>地&emsp;址</td>
      </tr>
      <c:forEach var="admin" items="${admins}">
        <tr>
          <td>${admin.username}</td>
          <td>${admin.password}</td>
          <td>${admin.phone}</td>
          <td>${admin.address}</td>
        </tr>
      </c:forEach>
  </table>
</c:if>


</body>
</html>
